//
//  CXYWebVC.swift
//  诚叙缘
//
//  Created by sujeking on 17/4/11.
//  Copyright © 2017年 szw. All rights reserved.
//

import UIKit

class CXYWebVC: UIViewController{

    @IBOutlet var webview: UIWebView!
    var url:String?
    var goodsTitle:String?
    
    override func viewDidLoad() {
        super.viewDidLoad()
        setupUI()
        self.webview.loadRequest(URLRequest(url: URL(string: self.url!)!))
    }
    
    func setupUI() {
        self.navigationItem.title = self.goodsTitle
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
}

extension CXYWebVC {
    
    open func configWebVC(url:String!,title:String!) {
        self.url = url
        self.goodsTitle = title;
    }
}

extension CXYWebVC : UIWebViewDelegate {
    
}
